//
//  CXBtConfig.m
//  JwPack
//
//  Created by 陈警卫 on 2025/8/12.
//

#import "CXBtConfig.h"

@implementation CXBtConfig

- (instancetype)init {
    self = [super init];
    if (self) {
        self.showPowerAlertKey = YES;
        self.allowDuplicatesKey = NO;
        self.disconnectReconnect = NO;
        
        self.scanUUIDs = [NSMutableSet set];
        self.filtAdvServiceUUIDs = [NSMutableSet set];
        self.filtAdvPeriUUIDs = [NSMutableSet set];
        self.filtAdvNames = [NSMutableSet set];
    }
    return self;
}

- (id)copyWithZone:(NSZone *)zone {
    
    CXBtConfig *copy = [[[self class] allocWithZone:zone] init];
    copy.showPowerAlertKey = self.showPowerAlertKey;
    copy.allowDuplicatesKey = self.allowDuplicatesKey;
    copy.disconnectReconnect = self.disconnectReconnect;
    
    copy.scanUUIDs = [self.scanUUIDs mutableCopy];
    copy.filtAdvServiceUUIDs = [self.filtAdvServiceUUIDs mutableCopy];
    copy.filtAdvPeriUUIDs = [self.filtAdvPeriUUIDs mutableCopy];
    copy.filtAdvNames = [self.filtAdvNames mutableCopy];
    
    return copy;
    
}



@end
